home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 7 / developer source - volume 7.iso / msysj / aug96 / dilaf108.gif < prev    next >
Graphics Interchange Format  |  1997-01-16  |  64KB  |  586x472  |  4-bit (16 colors)
Labels: text | screenshot | software | number | web page
OCR: Figure & Conversion Possibilities for Get Functions Case Assignment Conversion MFC Conversion Inside Get Function B cs-Get[String() es + comst CString& Calle return n str; CString :: operatore(const V/ as const CString& (String%) No conversion, just returns which does a quick copy. const pointer to m_str. Equivalent to: cs.operator-(GetCString()): which does CS.m_pch Data - . GettString().m ochData; // and increment rof count 6 cs-GetLPCSTR(} CS € LPCSTR Calls return m str: // @5 LPCSTR CString : : operator-(LPCSTR); Call: to allocate and copy bytes, CString: : operator LPCSTR Equivalent to: (imline) cs.operator-(GetLPCSTR()); to convert mi_str to LPCSTR. This just gets cs.m_pchData. Equivalent to: retura m_str.n pchDate 7 1p-GetCString() lp - const CString& Calls inline return'n_str: "String: : operator LPCSTR // as const CStringa to get m_pchDati. Equivalent to: No converaion; just returns Ip = GotCString().m_pchData: const pointer to mn_str. 8 1p-GetLPCSTR() Ip = LFCSTR No conversion. Simple assignment, return n_str: // as LPCSTR p-pointer Calls CSTring: : operator LPCSTR (inline) to convert m_str to LPCSTR. This just gets ca.m pchData. Equivalent to: return m str.m pchbata ca = CString Ip = LPCSTR red = performance hit